package vo

import "soma-server/model/system"

type CreateMenuRequest struct {
	Name     string      `json:"name" form:"name" validate:"required,min=1,max=50"`
	Path     string      `json:"path" form:"path" validate:"required,min=1,max=100"`
	Meta     system.Meta `json:"meta" form:"meta" validate:"required"`
	Redirect string      `json:"redirect" form:"redirect" validate:"min=0,max=100"`
	ParentId uint        `json:"parentId" form:"parentId"`
	Type     uint        `json:"type" form:"type"`
	Status   uint        `json:"status" form:"status"`
}

type UpdateMenuRequest struct {
	Name     string      `json:"name" form:"name" validate:"required,min=1,max=50"`
	Path     string      `json:"path" form:"path" validate:"required,min=1,max=100"`
	Meta     system.Meta `json:"meta" form:"meta" validate:"required"`
	Redirect string      `json:"redirect" form:"redirect" validate:"min=0,max=100"`
	ParentId uint        `json:"parentId" form:"parentId"`
	Type     uint        `json:"type" form:"type"`
	Status   uint        `json:"status" form:"status"`
}

// 删除接口结构体
type DeleteMenuRequest struct {
	MenuIds []uint `json:"menuIds" form:"menuIds"`
}
